home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
netprog.zip
/
NETPROG.TAR
/
lib
/
spipe.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-12-17
|
280b
|
14 lines
/*
* Create an unnamed stream pipe.
*/
#include <sys/types.h>
#include <sys/socket.h>
int /* returns 0 if all OK, -1 if error (with errno set) */
s_pipe(fd)
int fd[2]; /* two file descriptors returned through here */
{
return( socketpair(AF_UNIX, SOCK_STREAM, 0, fd) );
}